package filehomework;

import java.io.File;

public class test02 {
    public static void main(String[] args) {
        for(int i=1;i<=100;i++) {
            File file = new File("./src/filehomework/"+i+".txt");
            if (file.exists()) {
                file.delete();
                System.out.println("删除完毕！！！");
            } else {
                System.out.println("文件不存在");
            }
        }
    }
}
